package server;

/*Server.java
 * Kathryn Glowinski
 * 
 * This is the class which will send and receive all data from the GA's. 
 */
public class Server {
		
	GenericGA population;

	public Server(){
		//Creates a ScheduleConflicts to be used with the ScheduleProblem
		//This one will have 3 classes, and a conflict difficulty of 0.5
		int numClasses = 3;
		int popSize = 10;
		int timeSlots = 2; 
		
		ScheduleConflicts conflicts = new ScheduleConflicts(numClasses);
		conflicts.generateRandomly(0.5);
		
		population = new ScheduleProblem(popSize, numClasses, conflicts, timeSlots);
		population.populateRandomly();		
	}
}
